﻿#ifndef WIDGET_H
#define WIDGET_H

#include "itembaseeditor.h"

#include <QMap>
#include <QDir>
#include <QLabel>
#include <QPixmap>
#include <QResizeEvent>

#include "m_fhs.h"
#include "itemadd.h"
#include "itemedit.h"
#include "imageviewer.h"

namespace Ui {
class Widget;
}

class Widget : public ItemBaseEditor
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    void updateView();
    void generateMenu();
    QList<QStandardItem *> getLabelItems(const QString &category) const;

    void newItem();
    void editItem();
    void removeItem();
    void collapseAll();
    void searchSpec();

private slots:
    void on_treeView_doubleClicked(const QModelIndex &index);

    void on_treeView_clicked(const QModelIndex &index);

    void on_input_returnPressed();

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
